package com.jingjiu.homeservicesapi.domain;

import java.math.BigDecimal;


/**
 * 订单明细：支持一个订单多商品/食品对象 order_item
 * 
 * @author ruoyi
 * @date 2025-04-16
 */
public class OrderItem
{
    private static final long serialVersionUID = 1L;

    /** 订单明细ID */
    private Long id;

    /** 关联的订单ID */

    private Long orderId;

    /** 商品/食品名称 */

    private String productName;

    /** 购买数量 */

    private Long quantity;

    /** 单价（可选） */

    private BigDecimal price;

    /** 商品类型（如 餐饮、普通商品） */

    private String itemType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setItemType(String itemType) 
    {
        this.itemType = itemType;
    }

    public String getItemType() 
    {
        return itemType;
    }


}
